import React, { Component } from "react";

class Skzj extends Component {
  render() {
    return (
      <input
        type="text"
        name=""
        id=""
        value={this.props.value}
        onChange={this.props.onChange}
      />
    );
  }
}
function Gaojie(Zujian) {
  return class extends Component {
    state = {
      value: "杨洋",
    };
    shuru = (e) => {
      console.log(11);
      this.setState({
        value: e.target.value,
      });
    };
    render() {
      return (
        <Zujian>
          <input
            type="text"
            name=""
            id=""
            value={this.state.value}
            onChange={this.shuru}
          />
        </Zujian>
      );
    }
  };
}
let Gaojie0 = Gaojie(Skzj);

export default class App extends Component {
  render() {
    return (
      <div>
        <h3>昊辰 罗喉计都</h3>
        <Gaojie0></Gaojie0>
      </div>
    );
  }
}
